package com.duoec.graphql.provider.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 用于标注响应体字段，被标注的字段值是通过dataFetch获取
 * @author xuwenzhen
 */
@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface GraphqlScalarType {
    /**
     * 扩展的GraphQLScalarType名称，当前可用值：JsonScalar / ObjectScalar
     *
     * @return
     */
    String value();
}
